from django.db import models


class Referer(models.Model):
    referer_md5 = models.IntegerField(primary_key=True)
    date = models.DateField()
    referer = models.CharField(max_length=765)
    visites = models.IntegerField()
    visites_jour = models.IntegerField()
    visites_veille = models.IntegerField()
    maj = models.DateTimeField()
    class Meta:
        db_table = u'spip_referers'

class RefererArticle(models.Model):
    id_article = models.IntegerField(primary_key=True)
    referer_md5 = models.IntegerField()
    date = models.DateField()
    referer = models.CharField(max_length=765)
    visites = models.IntegerField()
    maj = models.DateTimeField()
    class Meta:
        db_table = u'spip_referers_articles'
